﻿namespace WMS6.Web.Administration
{
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using WMS6.Web;

    public class UdfGridReportSettingQuery : BasePage
    {
        protected Button btnExport;
        protected Button btnList;
        protected Button btnNew;
        protected Button btnSearch;
        protected DropDownList ddlReportIDOper;
        protected DropDownList ddlReportNameOper;
        protected HtmlForm F1890;
        protected HtmlInputHidden hdnActionID;
        protected Label lblReportID;
        protected Label lblReportName;
        protected Label lblUdfReportSetting;
        protected HtmlLink mycss;
        protected TextBox txtReportID;
        protected TextBox txtReportName;

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            base.Server.Transfer("UdfGridReportSettingList.aspx", false);
        }

        private void InitDropDownLists()
        {
            base.InitQueryDDL(this.ddlReportIDOper, 0);
            base.InitQueryDDL(this.ddlReportNameOper, 0);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                base.InitPage(this.Page);
                this.InitDropDownLists();
            }
        }

        public string ReportID
        {
            get
            {
                if (!string.IsNullOrEmpty(this.txtReportID.Text.Trim()))
                {
                    return base.GetParamsString(this.txtReportID.Text.Trim(), this.ddlReportIDOper.SelectedValue);
                }
                return "";
            }
        }

        public string ReportName
        {
            get
            {
                if (!string.IsNullOrEmpty(this.txtReportName.Text.Trim()))
                {
                    return base.GetParamsString(this.txtReportName.Text.Trim(), this.ddlReportNameOper.SelectedValue);
                }
                return "";
            }
        }
    }
}

